package com.zut.dao;

import com.github.pagehelper.Page;
import com.zut.pojo.Employee;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.sql.SQLException;
import java.util.List;

/**
 * @author 张晨
 * @date 2024/9/6 16:08
 * @desc
 */
public interface EmployeeDao {
    @Delete("delete from employee where id = #{id}")
    Integer deleteById(Integer id);

    Integer insert(Employee employee);

    Integer updateById(Employee employee);

    Page<Employee> selectByAccountAndNicknameAndTelephone(Employee employee);
}
